package com.demo.webflux.spring5core.c7;

import java.util.HashMap;
import java.util.Map;

import com.demo.webflux.spring5core.c7.servlet.dispatch.DispatchServlet;
import com.demo.webflux.spring5core.c7.servlet.domain.HttpServletRequest;
import com.demo.webflux.spring5core.c7.servlet.domain.HttpServletResponse;
import com.demo.webflux.spring5core.c7.servlet.domain.ServletConfig;

public class Test {

	public static void main(String[] args) throws Exception {
		Map<String, String[]> parameter = new HashMap<>();
		parameter.put("name", new String[] {"aaaaa"});
		HttpServletRequest request = new HttpServletRequest("/app/demo/query", "/app", parameter);

		DispatchServlet servlet = new DispatchServlet();
		servlet.init(new ServletConfig());
		servlet.doGet(request, new HttpServletResponse());
	}

}
